package com.pureut.quality.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ContentRowHeight(20)
@HeadRowHeight(18)
public class QualityBadCategoryExport {

    @ExcelProperty("*不良名称")
    @ColumnWidth(value = 20)
    @NotBlank(message = "不良名称不能为空")
    private String badName;

    @ExcelProperty("*不良等级")
    @ColumnWidth(value = 20)
    @NotBlank(message = "不良等级不能为空")
    private String badGrade;

    @ExcelProperty("*检测阶别")
    @ColumnWidth(value = 20)
    @NotBlank(message = "检测阶别不能为空")
    private String itemRank;

    @ExcelProperty("不良描述")
    @ColumnWidth(value = 20)
    private String badContent;
}
